<link rel="stylesheet" href="/Content/FileUpload/css/jquery.fileupload.css" />
<script language="JavaScript" type="text/javascript" src="/Content/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" href="/Content/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/Content/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/Content/kindeditor/lang/zh-CN.js"></script>

<style>
#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}

</style>
<div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>
							<if condition="$info.id == 0">添加便民服务
    <else />修改便民服务
</if>
							</h5>
                            
                        </div>
                        <div class="ibox-content">
                            <form  action="/index.php/Home/News/add" onsubmit="uptext()"  id="myform" method="post" class="form-horizontal"  enctype="multipart/form-data">
                               
								
								<div class="form-group"><label class="col-sm-2 control-label">标题</label>
                                    <div class="col-sm-10">
									<input type="text"  class="form-control"  name="title" value="{$info.title}" />
									</div>
                                </div>
									
								<div class="form-group"><label class="col-sm-2 control-label">内容</label>
                                    <div class="col-sm-10">
									<textarea name="content" id="content" style="width:700px;height:200px;visibility:hidden;">{$info.content}</textarea>
									</div>
                                </div>
								
								
								
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-primary" type="submit" >保存</button>
                                    </div>
                                </div>
							<input type="hidden" value="{$info.id}" name="id" />
								
								<input type="hidden" value="{$info.img}" name="img" id="img" />
							
                            </form>
                        </div>
                    </div>
                </div>
	
<script src="/Content/FileUpload/js/vendor/jquery.ui.widget.js"></script>
  <script src="/Content/FileUpload/js/jquery.iframe-transport.js"></script>
  <script src="/Content/FileUpload/js/jquery.fileupload.js"></script>
<script>
var editor;
 $(function () {

			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
				});
	});
});
</script>